Skip to content

Instantly share code, notes, and snippets.

@bassamsdata
bassamsdata / _Notes.md
Last active May 11, 2024 19:41
MiniFiles Git integration

Below is a code for Minifiles Git integration code snippet.

How to use it

Just insert the code below into this function in your Minifiles config:

config = function()
-- add the git code here
end
; Script to obtain meeting state and mute state from mutesync application (www.mutesync.com)
; This script will create 2 binary_sensor entities in Home Assistant; one for mute status and one for in_meeting status
;
; To obtain the status from Mutesync, a token must be obtained from the Mutesync application.
; 1. Choose mutesync preferences, authentication tab, and check "allow external app"
; 2. Open a browser and navigate to http://127.0.0.1:8249/authenticate
; 3. Copy the 16-character token and paste it into this next line between the quotes.
msToken := "ABCDEFGHIJKLMNOP"
; For communicating with Home Assistant, a long-lived access token is needed.

Estudos de caso com o Flux

Tópicos da apresentação

  • estratégias de deploy
  • tipos de fontes usadas pelo Flux
  • CRDs do Flux
  • benefícios de se usar flux na estrutura de gitops
  • estudo de caso: vículo básico de um repositório
  • estudo de caso: instalação de uma aplicação com helmrelease
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@denisolvr
denisolvr / public_dns_resolvers.json
Last active May 11, 2024 19:35
Public DNS Resolvers
{
"Cloudflare" : [
{
"ip" : "1.1.1.1"
},
{
"ip": "1.0.0.1"
}
],
"Namecheap": [
@keegoid
keegoid / WindowsBootEFI.sh
Last active May 11, 2024 19:33
How to repair Windows Boot Manager from Linux
# use Windows repair disc to run Startup Repair
# update grub config file for EFI system
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg # Fedora
sudo update-grub # Ubuntu
# if grub doesn't find Windows Boot Manager
# find EFI partition (could be on sdb, sdc, etc if you have more than one hard drive)
gdisk -l /dev/sda
@ld100
ld100 / ArchLinuxWSL2.md
Last active May 11, 2024 19:33
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@etexier
etexier / java-stream-readme.md
Last active May 11, 2024 19:32
Cheat sheet on Java streams

Java Streams

Overview

As part of Java 8 new features, lambda expressions are now supported (Project Lambda). See this very easy-to-read article from Brian Goetz State of the Lambda but more importantly focusing more on streams: State of the Lambda: Libraries Edition

Quick ways to create a stream

// From parameters
@oubiwann
oubiwann / README.md
Last active May 11, 2024 19:31
MACLISP and MACSYMA on PDP-10 / ITS (emulation)

MACLISP and MACSYMA on PDP-10 / ITS (emulation)

Goals

On a Debian machine, using simh emulating a PDP-10 running ITS:

  1. Write some Lisp files on ITS, compile them, and run them.
  2. Run MACSYMA and view rendered plots on an emulated Tektronix 4010

Background